﻿namespace Creventive.Wpf.ShellFactory.Services
{
    /// <summary>
    /// Defines how long a given service should live.
    /// </summary>
    public enum ServiceLifetime
    {
        /// <summary>
        /// This service should be kept alive as long as the service container is alive.
        /// </summary>
        ContainerLifetime,
        
        /// <summary>
        /// This service should be kept alive as long as the provided reference is destroyed by the garbage collector.
        /// </summary>
        ObjectLifetime
    }
}